package java0423;

import java.util.HashSet;
import java.util.Set;
public class java0423zuoye7 {

	public static void main(String[] args) {
		int[] arr4 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 3, 2, 4, 5, 6, 7, 4, 32, 2, 1, 1, 4, 6, 3 };
		 
		Set<Integer> set2 = new HashSet<Integer>();
		for (int i = 0; i < arr4.length; i++) {
			set2.add(arr4[i]);
		}
		System.out.println(set2);
		int[] arr5 = new int[set2.size()];
		int j = 0;
		for (Integer i : set2) {
			arr5[j++] = i;
		}
		System.out.println(Arrays.toString(arr5));
	}
}